package top.lc951.myglide.module;

import android.content.Context;
import android.support.annotation.NonNull;

import top.lc951.myglide.Glide;
import top.lc951.myglide.Registry;

public interface RegistersComponents {
    /**
     * Lazily register components immediately after the Glide singleton is created but before any
     * requests can be started.
     *
     * <p>This method will be called once and only once per implementation.
     *
     * @param context An Application {@link android.content.Context}.
     * @param glide The Glide singleton that is in the process of being initialized.
     * @param registry An {@link Registry} to use to register components.
     */
    void registerComponents(
            @NonNull Context context, @NonNull Glide glide, @NonNull Registry registry);
}
